<template>
  <div id="app">
    <router-view class="router-view" />
  </div>
</template>

<script setup lang="ts">
// 组件逻辑
</script>

<style>
/* 导入现代字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

#app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.router-view {
  height: 100%;
  width: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  font-family: inherit;
  line-height: 1.6;
  color: #2c3e50;
  height: 100vh;
  overflow: hidden;
}

html {
  font-size: 16px;
  height: 100%;
}

/* 全局样式优化 */
.el-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
}

.el-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.el-button {
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  padding: 12px 24px;
}

.el-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.el-input__inner {
  border-radius: 12px;
  border: 2px solid #e1e8ed;
  transition: all 0.3s ease;
  font-size: 14px;
  padding: 12px 16px;
}

.el-input__inner:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.el-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.el-dialog {
  border-radius: 16px;
  overflow: hidden;
}

.el-dialog__header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
}

.el-dialog__title {
  color: white !important;
}

.el-dialog__body {
  padding: 32px;
  max-height: 70vh;
  overflow-y: auto;
}

.el-dialog__footer {
  padding: 24px;
  border-top: 1px solid #e1e8ed;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .el-dialog {
    width: 95% !important;
    margin: 20px auto !important;
  }
  
  .el-dialog__body {
    max-height: 60vh;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .el-dialog {
    width: 98% !important;
    margin: 10px auto !important;
  }
  
  .el-dialog__body {
    max-height: 50vh;
    padding: 16px;
  }
  
  .el-button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 文本选择样式 */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: #2c3e50;
}

/* 焦点样式 */
*:focus {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

/* 禁用状态样式 */
*:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
</style>